package com.yx.demo

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.yx.demo.databinding.ActivityMainBinding

class MainActivity : BaseActivity() {

    lateinit var binding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_main)

        binding.codeScanner.setOnClickListener {
            startActivity(Intent(context, CodeScannerActivity::class.java))
        }

        binding.temp.setOnClickListener {
            startActivity(Intent(context, TemperatureActivity::class.java))
        }

        binding.idCard.setOnClickListener {
            startActivity(Intent(context, IdCardActivity::class.java))
        }
    }

}